<!--
 * @Author: your name
 * @Date: 2021-11-17 09:59:30
 * @LastEditTime: 2022-10-24 11:05:05
 * @LastEditors: yan_hai_dong 891236760@qq.com
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \app\src\views\Home.vue
-->
<template>
  <div class="home">
    <el-button
      v-for="({ path, name }, index) in btns"
      :key="index"
      @click="
        () => {
          $router.push({ path });
        }
      "
      >{{ name }}</el-button
    >
  </div>
</template>

<script>
export default {
  name: "Home",
  data() {
    return {
      btns: [
        { name: "el", path: "/el" },
        { name: "vant", path: "/vant" },
        { name: "three", path: "/three" },
        { name: "canvas", path: "/canvas" },
      ],
    };
  },
};
</script>
